//
//  JXSecurityRecordModel.h
//  JXIntercomSDK
//
//  Created by Nansen on 2021/8/5.
//  Copyright © 2021 jingxi. All rights reserved.
//

/// 切换安防的记录

#import <Foundation/Foundation.h>
#import "JXIntercomConstants.h"
#import <JXIntercomSDK/JX_GDataObjectProtocol.h>

NS_ASSUME_NONNULL_BEGIN

@interface JXSecurityRecordModel : NSObject<JX_GDataObjectProtocol>

@property (nonatomic, copy) NSString *identify;

/// 登录的 userId
@property (nonatomic, copy) NSString *userId;
/// 此条记录对应的homeId
@property (nonatomic, copy) NSString *homeId;
/// 切换安防的时间戳 (13位)
@property (nonatomic, assign) NSInteger switchTime;

/// 操作是设防还是撤防. 设防-NO, 撤防-YES
@property (nonatomic, assign) BOOL isClose;


/// SecurityDevice.device_name
@property (nonatomic, copy) NSString *deviceName;
/// SecurityDevice.net_client
@property (nonatomic, copy) NSString *netClientJson;


/** 是否禁用嵌入式设备的安防功能*/
@property (nonatomic, assign) BOOL disable_embedded_function;
/** 设置前状态 布防-1／撤防状态-0 */
@property (nonatomic, assign) int security_state;
/** 安防设备是否连接上了 */
@property(nonatomic, assign) int device_state;
/** 房间号 */
@property (nonatomic, copy) NSString *room;
/** 8路防区的别名，在中文语言下是中文 */
@property (nonatomic, copy) NSString* device_alias;
/** 8路防区的标示，用于准确识别设备 */
@property (nonatomic, copy) NSString* device_type;


- (NSDate *)switchDate;



@end

NS_ASSUME_NONNULL_END
